<ol class="breadcrumb">
    <li><a href="#">一元中奖</a></li>
    <li><a href="/goods/list">商品管理</a></li>
    <li>新增商品</li>
</ol>
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="glyphicon glyphicon-pencil"></span>
        <span class="panel-title">请填写商品信息</span>
    </div>
    <div class="panel-body">
        <form action="/goods/add" method="post" class="form-horizontal" role="form"  >
            <input type="hidden" value="<%= rid %>" name="rid">


            <div class="form-group">
                <label for="firstname" class="col-sm-2 control-label">商品名称</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="title" name="title"
                           placeholder="请输入商品名称">
                </div>
            </div>
            <div class="form-group">
                <label for="lastname" class="col-sm-2 control-label">商品描述</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="description" name="description"
                           placeholder="请输入商品描述">
                </div>
            </div>

            <div class="form-group">
                <label for="lastname" class="col-sm-2 control-label">商品编号</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="productsn" name="productsn"
                           placeholder="请输入商品编号">
                </div>
            </div>

            <div class="form-group">
                <label for="lastname" class="col-sm-2 control-label">活动价格</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="productprice" name="productprice"
                           placeholder="请输入活动价格">
                </div>
            </div>
            <div class="form-group">
                <label for="lastname" class="col-sm-2 control-label">参与积分</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="credit" name="credit" value="0"
                           placeholder="请输入参与积分">
                </div>
            </div>


            <div class="form-group">
                <label for="lastname" class="col-sm-2 control-label">是否上架</label>

                <div class="col-sm-10">
                    <label class="checkbox-inline">
                        <input type="radio" name="status" id="status1"
                               value="1" checked>上架
                    </label>
                    <label class="checkbox-inline">
                        <input type="radio" name="status" id="status2"
                               value="0">不上架
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label for="lastname" class="col-sm-2 control-label">商品主图</label>

                <div class="col-sm-10">
                    <div id="demo" class="demo"></div>
                    <input id="thumb" name="thumb" value="" style="display: none;"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" class="btn btn-success btn-block">确认提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

<!-- zyupload -->
<link rel="stylesheet" href="/lib/zyupload/control/css/zyUpload.css" type="text/css">
<script src="/lib/zyupload/core/zyFile.js"></script>
<script src="/lib/zyupload/control/js/zyUpload.js"></script>
<script src="/lib/zyupload/core/lanrenzhijia.js"></script>
